const Koa = require ('koa');
const Router = require('koa-router')
const app = new Koa();
const router = new Router();



router.get('/',function(ctx,next){
    ctx.body='首页'
})
router.get('/weixin',function(ctx,next){
    ctx.body='微信'
})
router.get('/alipay',function(ctx,next){
    ctx.body='支付宝'
})
router.get('/ds',function(ctx,next){
    ctx.body='yyds'
})
app.use(router.routes())
app.use
const post = 7000;
app.listen(post);
console.log(`服务器运行于:http://localhost:${post}`);


